package com.wang.mapper;

import com.wang.entity.User;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface UserMapper {

    List<User> findAll();

    User findByUserId(@Param("id")Integer id);

    Integer addUser(User user);

    /**
     * @param
     * @return
     * @description 根据用户名查询用户
     * @author admin
     * @updateTime 2024/8/29 11:41
     */
    User findByUsername(@Param("username") String username);
}
